package com.itc.bi.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DataProcessInfoDto {
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "数据加工ID",required = true)
    @NotNull(message = "数据加工ID不能为空")
    private Long dpId;

    @ApiModelProperty(value = "类型 filter：过滤 calculation：字段计算 group：分组赋值 sum：汇总列 union：数据集合并 ",required = true)
    @NotBlank(message = "类型不能为空")
    private String type;

    @ApiModelProperty(value = "json参数字符串 ",required = true)
    @NotBlank(message = "json参数不能为空")
    private String param;
}
